import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["term", "column", "className", "children"];
import React from 'react';
import classNames from 'classnames';
import { Col } from 'antd';
import styles from "./index.less?modules";
import responsive from "./responsive";

var Description = function Description(_ref) {
  var term = _ref.term,
      column = _ref.column,
      className = _ref.className,
      children = _ref.children,
      restProps = _objectWithoutProperties(_ref, _excluded);

  var clsString = classNames(styles.description, className);
  return /*#__PURE__*/React.createElement(Col, Object.assign({
    className: clsString
  }, responsive[column], restProps), term && /*#__PURE__*/React.createElement("div", {
    className: styles.term
  }, term), children && /*#__PURE__*/React.createElement("div", {
    className: styles.detail
  }, children));
};

Description.defaultProps = {
  term: ''
};
export default Description;